

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<f:view>
    <html>

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>TestFire</title>
         <jsp:useBean id="nav" class="org.testfire.realm.control.NavBean" />
        <link rel=stylesheet href="${nav.href_css_basic}" type="text/css">
        <script type="text/javascript" src="${nav.href_js_displayTools}"></script>
    </head>
    <body>
    <div id="masthead">
        <h1 id="siteName">TestFire</h1>
        <c:if test="${pageContext.request.userPrincipal.name != null}">
            <span style="float:right ">Logged In: ${pageContext.request.userPrincipal.name}</span>
        </c:if>
        <div id="globalNav">
            <h:form>
                <a id="href_home" href="${nav.href_home}">Home</a> |
                <a id="href_QueueManager" href="${nav.href_root}/app/main/QueueManager.jsf"> QueueManager</a> |
                <c:choose>
                    <c:when test="${pageContext.request.userPrincipal.name != null}">
                        <h:commandLink id="logout" action="nav_logout" actionListener="#{UserBean.userLogout}">
                            <h:outputText value="Log Out |"/>
                        </h:commandLink>
                    </c:when>
                    <c:otherwise>
                        <a id="href_account" href="${nav.href_account}">Log In</a> |
                    </c:otherwise>
                </c:choose>
            </h:form>
        </div>
    </div>
    <!-- end masthead -->
    <h2 id="pageName">Welcome. Please log in.</h2>


    </body>
    </html>
</f:view>
